package com.infore.common.model.entity.exchange;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.infore.common.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 数据同步-数据目标去向
 * </p>
 *
 * @author lijh
 * @since 2023-02-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_ex_target_data_info")
public class TTargetDataInfo extends BaseModel<TTargetDataInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "target_id", type = IdType.UUID)
    private String targetId;
    /**
     * 数据源
     */
    @TableField("database_id")
    private String databaseId;
    /**
     * 数据表
     */
    @TableField("data_table")
    private String dataTable;

    /**
     * 数据表中文名称
     */
    @TableField("data_table_cn")
    private String dataTableCn;
    /**
     * 数据列
     */
    @TableField("data_fields")
    private String dataFields;
    /**
     * 增量列-暂时未用到
     */
    @TableField("increment_column")
    private String incrementColumn;

    @Override
    protected Serializable pkVal() {
        return this.targetId;
    }

}
